/**
 * @description 商品
 */
import style from './styles/App.less';
import React from 'react';
import EntryBase from "../Common/EntryBase";

import loadable from "commons/loadable";
import RouterNotMatch from "components/RouterNotMatch";
import { HashRouter, Route, Switch, Redirect } from 'react-router-dom';

import util from "commons/util";

class App extends EntryBase {
    constructor(props) {
        super(props);
        this.state = {}
    }
    
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/Detail/:goodsId" component={loadable(() => import("./Detail"))} />
                    <Route path="/Pay/:tradeNo" component={loadable(() => import("./Pay"))} />
                    <Route path="/PayResult/:tradeNo" component={loadable(() => import("./PayResult"))} />
                    <Route path="*" component={RouterNotMatch} />
                </Switch>
            </HashRouter>
        )
    }
}
export default App;